

<include file="Public/head"/><body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>
            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <div class="cf">
                            <form class="form-inline" action="" method="get">
                                <label class="inline">开始时间</label>
								<input class="form-control" value="{$bdate}" id="bdate" name="bdate" type="text" data-date-format="dd-mm-yyyy" />
								<span class="input-group-addon ace-icon fa fa-calendar bigger-110" style="width:40px;"></span>								
								<label class="inline">结束时间</label>
                                <input class="form-control" value="{$edate}" id="edate" name="edate" type="text" data-date-format="dd-mm-yyyy" />
                                <span class="input-group-addon ace-icon fa fa-calendar bigger-110" style="width:40px;"></span>
                                <button type="submit" class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>                                    
                                   	 搜索
                                </button>
                            </form>
                        </div>
                        <div class="space-4"></div>
                        <form id="form" method="post" action="{:U('del')}">
                            <table class="table table-striped table-bordered">
                                <thead>
                                <tr>
                                    <th class="center"><input class="check-all" type="checkbox" value=""></th>
                                    <th>用户名</th>
                                    <th>订单金额</th>
                                    <th>用户名注册时间</th>
                                    <th>下单时间</th>
                                    <th>支付时间</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php $count_money = 0;?>
                                <volist name="list" id="val">
                                    <tr>
                                        <td class="center"><input class="aids" type="checkbox" name="id[]" value="{$val['id']}"></td>
                                        <td><a href="#" title="{$val['class_name']}">{$val['nickname']}</a></td>
                                        <td>{$val['money'] / 100}元</td>
                                        <td>{$val['u_addtime']}</td>
                                        <td>{$val['addtime']}</td>
                                        <td>{$val['paytime']}</td>
                                    </tr>
                                    <?php $count_money += $val['money'];?>
                                </volist>
                                <tr>
                                    <td class="center">总金额</td>
                                    <td></td>
                                    <td><?php echo ($count_money / 100)."元"; ?></td>
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                </tr>                                
                                </tbody>
                            </table>
                        </form>
                        <div class="cf" style="display:none;">
                            <input id="submit" class="btn btn-info" type="button" value="删除">
                        </div>
                        {$page}
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        $(".check-all").click(function () {
            $(".aids").prop("checked", this.checked);
        });
        $(".aids").click(function () {
            var option = $(".ids");
            option.each(function (i) {
                if (!this.checked) {
                    $(".check-all").prop("checked", false);
                    return false;
                } else {
                    $(".check-all").prop("checked", true);
                }
            });
        });
        $("#submit").click(function () {
            bootbox.confirm({
                title: "系统提示",
                message: "是否要删除所选文章？",
                callback: function (result) {
                    if (result) {
                        $("#form").submit();
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
        $(".del").click(function () {
            var url = $(this).attr('val');
            bootbox.confirm({
                title: "系统提示",
                message: "是否要该文章？",
                callback: function (result) {
                    if (result) {
                        window.location.href = url;
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
    })
</script>
<script src="/Public/qwadmin/js/date-time/bootstrap-datepicker.js"></script>
<script src="/Public/qwadmin/js/function.js"></script>
<script type="text/javascript">
    jQuery(function ($) {
        $('#bdate').datepicker({
            format: 'yyyy-mm-dd',
            weekStart: 1,
            autoclose: true,
            todayBtn: 'linked',
            language: 'cn'
        });
        
        $('#edate').datepicker({
            format: 'yyyy-mm-dd',
            weekStart: 1,
            autoclose: true,
            todayBtn: 'linked',
            language: 'cn'
        });        
    });
</script>
</body>
</html>
